package com.tedu.ds.advertisement.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
@ApiModel(description = "广告信息表实体类")
public class Advertisement {

    @ApiModelProperty(value = "广告id", example = "1")
    private Integer id;

    @ApiModelProperty(value = "广告名称", example = "秋季促销活动", required = true)
    private String name;

    @ApiModelProperty(value = "广告类型", example = "横幅广告")
    private String type;

    @ApiModelProperty(value = "广告图片", example = "http://example.com/image.jpg")
    private String image;

    @ApiModelProperty(value = "广告链接", example = "http://example.com/offer")
    private String link;

    @ApiModelProperty(value = "广告内容", example = "享受秋季大促销，全场商品8折！")
    private String content;

    @ApiModelProperty(value = "开始日期", example = "2023-10-24T20:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "UTC+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间", example = "2023-10-24T20:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "UTC+8")
    private Date updateTime;

    @ApiModelProperty(value = "结束日期", example = "2023-10-31T23:59:59")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "UTC+8")
    private Date endTime;

    @ApiModelProperty(value = "点击次数", example = "1000")
    private Long clicks;

    @ApiModelProperty(value = "状态", example = "启用")
    private String status;

    @ApiModelProperty(value = "备注", example = "此广告为限时活动，需重点关注")
    private String remark;

    @ApiModelProperty(value = "合同id", example = "1")
    private Integer contractId;
}
